package FlyGame;

import org.junit.Test;

import javax.swing.*;
import java.awt.*;

public class LoginFrame extends JFrame {
    LoginPanel loginPanel;

    public LoginFrame() throws HeadlessException {
        this.setTitle("Fly-Bird 小游戏");
        this.setBounds(270,200,400,300);
        this.setResizable(false);
        this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);

        loginPanel = new LoginPanel();
        this.add(loginPanel);
    }

    @Override
    public void setVisible(boolean b) {
        super.setVisible(b);
    }

    public static void main(String[] args) {
        LoginFrame loginFrame = new LoginFrame();
        loginFrame.setVisible(true);
    }
}
